@RikiArgumentImport()
import 'package:example/arg/demo3arg.dart';
import 'package:example/router/example_routes.dart';
import 'package:example/util/widget_util.dart';
import 'package:example_package/arg/package1arg.dart';
@RikiArgumentImport()
import 'package:flutter/material.dart';
import 'package:riki_router/riki_router.dart';

@RikiRoute(
  name: '/demo/3',
  routeName: '实体参数页面',
  pageRouteType: PageRouteType.cupertino,
)
class Demo3Page extends StatelessWidget {
  const Demo3Page({Key? key, required this.arg}) : super(key: key);

  @RikiArgument('Demo3参数')
  final Demo3Arg arg;

  @override
  Widget build(BuildContext context) {
    RikiPage? route = RikiRouterDelegate.of(context).find(this);
    return Scaffold(
      appBar: buildAppBar('DEMO 3'),
      body: ListView(
        children: [
          Container(
            alignment: Alignment.center,
            height: 44,
            child: Text(route?.routeName ?? ''),
          ),
          buildListTile('arg:$arg', () {}),
        ],
      ),
    );
  }
}
